package demo1;

public enum SEnum{

    SPRING("春天","花香"),
    SUMMER("夏天","烈日"),
    AUTUMN("秋天","气爽"),
    WINTER;//这里WINTER调用无参构造器

    private String name;
    private String character;

    SEnum() { //注意，这里没有 private 修饰，因为被默认修饰了
    }

    SEnum(String name, String character) {
        this.name = name;
        this.character = character;
    }

    public String getName() {
        return name;
    }

    public String getCharacter() {
        return character;
    }

    @Override
    public String toString() {
        return "SEnum{" +
                "name='" + name + '\'' +
                ", character='" + character + '\'' +
                '}';
    }
}
